home *** CD-ROM | disk | FTP | other *** search
Wrap
www.parse2 { unset %www.title %bkmrk.* | wincheck @C-ScriptáBrowser -l19 @C-ScriptáBrowser $center(634,380) 634 380 @C-ScriptáBrowser comic sans ms 12 if $1 != $null { set %www.num $1 } else set %www.num 1 set %twww.file %www.num | set %www.count 0 | set %www.line $mircdirsysfiles\www\ $+ %www.num $+ .html | set %www.line $lines(%www.line) :next inc %www.count | if %www.count > %www.line goto end set %www.ps $read -nl $+ %www.count sysfiles\www\ $+ %www.num $+ .html set %www.ps ^ $+ $replace(%www.ps,><,>^<) $+ ^ set %www.ps $replace($replace($replace($replace(%www.ps,ALT=",>^<IMG_ALT "),<B>,),</B>,),<a href,12<a href) set %www.ps $replace(%www.ps,>,<) :next2 if (< !isin %www.ps) { if $remove($remove($remove($remove(%www.ps,),),$chr(9)),^) != $null { echo @C-Scriptábrowser $remove($remove($replace($replace($replace($replace($replace($replace($replace($replace(%www.ps,","), ,$chr(160)),©,⌐),®,«),<,<),>,>),&,&),©,⌐),$chr(9)),^) } | goto next } ;if ($mid($gettok(%www.ps,2,60),1,6) == script) { set %www.script 1 } ;if ($gettok(%www.ps,2,60) == /script) { unset %www.script | goto next } ;if (%www.script == 1) { goto next } if $left($gettok(%www.ps,2,60),7) == a $+ $chr(32) $+ href= { set %tFile $remove($gettok($remove($gettok(%www.ps,2,60),a href=),1,32),") } if $gettok(%www.ps,2,60) == /a { set %www.ps $gettok(%www.ps,1,60) $+ ( $+ %tfile $+ ) $gettok(%www.ps,3-,60) | goto next2 } if $gettok($gettok(%www.ps,2,60),1,32) == IMG_ALT { set %www.ps $gettok(%www.ps,1,60) $+ (img) $+ $gettok($gettok(%www.ps,2,60),2,34) $+ (img) $gettok(%www.ps,3-,60) | goto next2 } set %www.ps $gettok(%www.ps,1,60) $+ $gettok(%www.ps,3-,60) goto next2 :end set %swww.bkmrk $readini sysfiles\www\settings.ini recent %www.num $+ ⌐ $+ %www.title unset %www.* | sline @C-ScriptáBrowser 18 | next 1 } ;C-Script v5.0 ⌐ 1998 C-Team. All rights reserved. ;Configure at your own risk ;Seen script, and script aliases ;========== ;Useful script aliases ;========== ;Backup pertinent C-Script files backup { run sysfiles\backup.bat } ;Raw connecting rawcon { sock $1- } ;Client-to-client-protocal ctcp { if ($2 == PING) { raw -q PRIVMSG $1 : $+ $chr(1) $+ PING $ticks $+ $chr(1) echo $+ $clr(ctcp) $+ -> $chr(91) $+ $1 $+ $chr(93) PING halt } ctcp $1- } ;Gets server links links { set %lnkscnt 0 | raw -q links } ;Plays specified page message playmsg set %msgnum 0 | set %msgnicks "" | .timer350 off | set %temp $readini sysfiles\page\page.ini page $$1 | if (%temp == $null) { echo $+ $clr(info) $+ *** Message from $$1 not found! } | else { $readini sysfiles\page\page.ini page $$1 | remini $mircdirsysfiles\page\page.ini page $$1 } ;Find out the country of a specific domain (i.e. *.com) country set %temp $read -s $+ $1 sysfiles\country.txt | if (%temp == $null) { echo $+ $clr(info) $+ *** Unknown Domain } | else { echo $+ $clr(info) $+ *** %temp } ;Notify list notify { notify $1- | update } ;Comments, suggestion, bugs, and reports comments { mail.initiate sethd@c-script.com } ;Telnet connecting telnet sock $$1 23 ;Sets the fserver directory fservedir { set %fservedir $$?="FServe Directory:" | if ($exists(%fservedir) == $false) { set %fserved } | echo $+ $clr(info2) $+ *** FServe directory set to: %fservedir } ;C-Script help chelp { .load -rs sysfiles\help\chelp.mrc chelprun if ($1 != $null) { set %tmp.chl $read -s $+ $1 sysfiles\help\ifiles.mrc if (%tmp.chl != $null) { .timer 1 1 chlpl %tmp.chl } } } c-help { chelp } ;C-Script status (settings & protections) CStatus { wincheck @settings +bn @Settings $center(600,-3000) 300 260 @Settings Comic sans ms 12 wincheck @protection +bn @Protection $center(0,-3000) 300 260 @Protection comic sans ms 12 wincheck %csstsw -p +bn %csstsw $center(600,5000) 600 132 %csstsw Comic sans ms 12 drawfill %csstsw 0 0 0 0 drawpic %csstsw 75 0 /sysfiles/stats.bmp echo @Settings $+ $clr(info) $+ Auto-Adapt: $+ $clr(info2) $group(#autoapt) echo @Settings $+ $clr(info) $+ Auto-Greet: $+ $clr(info2) $group(#autogreet) echo @Settings $+ $clr(info) $+ Auto-Spell: $+ $clr(info2) $group(#autospell) echo @Settings $+ $clr(info) $+ Auto-Talk: $+ $clr(info2) $group(#autotalk) echo @Settings $+ $clr(info) $+ Auto-Whois: $+ $clr(info2) $group(#awhois) echo @Settings $+ $clr(info) $+ Auto Idle-Away: $+ $clr(info2) %idleaway echo @Settings $+ $clr(info) $+ ChanCloneScan: $+ $clr(info2) $group(#chanclone) echo @Settings $+ $clr(info) $+ Color Stripper: $+ $clr(info2) %stripper echo @Settings $+ $clr(info) $+ CTCPs: $+ $clr(info2) $group(#groupctcp) echo @Settings $+ $clr(info) $+ CTCP-Reply: $+ $clr(info2) $group(#ctcpreply) echo @Settings $+ $clr(info) $+ ChanRe-Join: $+ $clr(info2) %chanrejoin echo @Settings $+ $clr(info) $+ ChanStats: $+ $clr(info2) $group(#chanstats) echo @Settings $+ $clr(info) $+ Error-Echo: $+ $clr(info2) $group(#errorecho) echo @Settings $+ $clr(info) $+ Fake Ping-Reply: $+ $clr(info2) $group(#fakeping) echo @Settings $+ $clr(info) $+ Friends: $+ $clr(info2) $group(#group7) echo @Settings $+ $clr(info) $+ FServe: $+ $clr(info2) $group(#fserv) echo @Settings $+ $clr(info) $+ á $+ $chr(149) $+ Keyword: $+ $clr(info2) %fsvkey echo @Settings $+ $clr(info) $+ IAL Auto-Update: $+ $clr(info2) $group(#ialaupd) echo @Settings $+ $clr(info) $+ Join-Greet: $+ $clr(info2) $group(#greet) echo @Settings $+ $clr(info) $+ Links Extras: $+ $clr(info2) $group(#links) echo @Settings $+ $clr(info) $+ NetSplit Detector: $+ $clr(info2) $group(#nsplit) echo @Settings $+ $clr(info) $+ NickComplete: $+ $clr(info2) $group(#nc) echo @Settings $+ $clr(info) $+ NotifyExtras: $+ $clr(info2) $group(#notify) echo @Settings $+ $clr(info) $+ RawEcho: $+ $clr(info2) $group(#rawecho) echo @settings $+ $clr(info) $+ á $+ $chr(149) $+ Echoing to: $+ $clr(info2) $replace($replace(%wrecho,-s,Status),-a,Active) echo @Settings $+ $clr(info) $+ Record: $+ $clr(info2) $group(#record) echo @Settings $+ $clr(info) $+ Seen: $+ $clr(info2) $group(#seen) echo @Settings $+ $clr(info) $+ ShootList: $+ $clr(info2) $group(#groupshoot) echo @Settings $+ $clr(info) $+ SoundExtras: $+ $clr(info2) $group(#sounds) echo @Settings $+ $clr(info) $+ UserMode-Extras: $+ $clr(info2) $group(#usermode) echo @Settings $+ $clr(info) $+ WallOps: $+ $clr(info2) $group(#wallops) echo @Settings $+ $clr(info) $+ á $+ $chr(149) $+ Box: $+ $clr(info2) %wallopsbox echo @Settings $+ $clr(info) $+ XDCC: $+ $clr(info2) $group(#xdcc) echo @Protection $+ $clr(info) $+ Address: $+ $clr(info2) $group(#addpro) echo @Protection $+ $clr(info) $+ Ban: $+ $clr(info2) %banprot echo @Protection $+ $clr(info) $+ CTCP Flood: $+ $clr(info2) $group(#ctcppro) echo @Protection $+ $clr(info) $+ á $+ $chr(149) $+ CTCPs: $+ $clr(info2) %cfldn in $mpy(%cfldt,%cfldn) secs echo @Protection $+ $clr(info) $+ Hack: $+ $clr(info2) $group(#hackpro) echo @Protection á $+ $clr(info) $+ $chr(149) $+ Force Modes: $+ $clr(info2) %forcemodesison echo @Protection áá $+ $clr(info) $+ $chr(186) $+ Modes: $+ $clr(info2) + $+ %forcemodes echo @Protection á $+ $clr(info) $+ $chr(149) $+ Disallow Modes: $+ $clr(info2) %disallowmodesison echo @Protection áá $+ $clr(info) $+ $chr(186) $+ Modes: $+ $clr(info2) + $+ %disallowmodes echo @Protection á $+ $clr(info) $+ $chr(149) $+ Disallow Toplevel Bans: $+ $clr(info2) %hacktoplevel echo @Protection á $+ $clr(info) $+ $chr(149) $+ MassDeop Pro: $+ $clr(info2) %massdeop echo @Protection áá $+ $clr(info) $+ $chr(186) $+ Deops: $+ $clr(info2) %maxdeops in %deoptime secs echo @Protection $+ $clr(info) $+ Invite Flood: $+ $clr(info2) $group(#invitefloodpro) echo @Protection á $+ $clr(info) $+ $chr(149) $+ Invites: $+ $clr(info2) %invfpn in $mpy(%invfpt,%invfpn) secs echo @Protection $+ $clr(info) $+ Nick Flood: $+ $clr(info2) $group(#nkfloodpro) echo @Protection á $+ $clr(info) $+ $chr(149) $+ Nicks: $+ $clr(info2) %nflnm in $mpy(%nfltmn,%nflnm) secs if (%csmspass == $null) { echo @Protection $+ $clr(info) $+ Password: $+ $clr(info2) Off } if (%csmspass != $null) { echo @Protection $+ $clr(info) $+ Password: $+ $clr(info2) On | echo @Protection á $+ $+ $clr(info) $+ $chr(149) $+ Key/Word: $+ $clr(info2) %csmspass } echo @Protection $+ $clr(info) $+ Text Protections: echo @Protection á $+ $clr(info) $+ $chr(149) $+ Channel: $+ $clr(info2) $group(#floodpro) echo @Protection á $+ $clr(info) $+ $chr(149) $+ Message: $+ $clr(info2) $group(#mfloodpro) echo @Protection á $+ $clr(info) $+ $chr(149) $+ Notice: $+ $clr(info2) $group(#nfloodpro) echo @Protection áá $+ $clr(info) $+ Sections: echo @Protection áá $+ $clr(info) $+ $chr(186) $+ BigMouthBan: $+ $clr(info2) %lengthtfg echo @Protection ááá $+ $clr(info) $+ $chr(149) $+ Max len. of 1st word: $+ $clr(info2) %lfowlt echo @Protection ááá $+ $clr(info) $+ $chr(149) $+ Max len. of sentence: $+ $clr(info2) %lfawlt echo @Protection áá $+ $clr(info) $+ $chr(186) $+ CapsBan: $+ $clr(info2) %capskickg echo @Protection áá $+ $clr(info) $+ $chr(186) $+ ColorBan: $+ $clr(info2) %coltfldg echo @Protection ááá $+ $clr(info) $+ $chr(149) $+ Max color codes: $+ $clr(info2) %clrflt echo @Protection áá $+ $clr(info) $+ $chr(186) $+ CussKick: $+ $clr(info2) %ckickg echo @Protection áá $+ $clr(info) $+ $chr(186) $+ RepeatBan: $+ $clr(info2) %rpttg echo @Protection áá $+ $clr(info) $+ $chr(186) $+ Text Flood: $+ $clr(info2) %chntfldg echo @Protection ááá $+ $clr(info) $+ $chr(149) $+ Lines: $+ $clr(info2) %cfllns in $mpy(%cfllps,%cfllns) secs echo @Protection $+ $clr(info) $+ Ban/Ignore: $+ $clr(info2) %prtbntm sec ban and %prtigtm sec ignore sline @settings 14 sline @protection 14 } ;Basic scriptinfo: version and addons scriptinfo { wincheck @ScriptáInformation @ScriptáInformation $center(500,250,@ScriptáInformation) $wh(500,250,@ScriptáInformation) @ScriptáInformation Comic Sans MS 12 echo @ScriptáInformation $+ $clr(info) $+ $vers echo @ScriptáInformation $+ $clr(highlight) $+ http://www.c-script.com/ and /server irc.c-script.com if ($len(%addons) <= 4) { goto final } else { echo @ScriptáInformation á echo @ScriptáInformation $+ $clr(info) $+ Addon Info: set %tmp.adnlp 1 set %tmp.adnc $count(%addons,$chr(160)) :loop if ($gettok(%addons,1,160) == $null || %tmp.adnlp > %tmp.adnc) { goto end } set %tmp.adni $gettok(%addons,%tmp.adnlp,160)) set %tmp.adni2 [ % [ $+ [ %tmp.adni ] ] ] if (%tmp.adni2 == $null) { echo @ScriptáInformation $+ $clr(info2) $+ $+ %tmp.adnlp $+ . %tmp.adni - No Info Available! } else { echo @ScriptáInformation $+ $clr(info2) $+ $+ %tmp.adnlp $+ . %tmp.adni - %tmp.adni2 } inc %tmp.adnlp goto loop :end } :final } ;Auto-Spell command. Use either "/aspell on" or "/aspell off" aspell { if ($1 == $null) { set %aspellq $?="Turn Auto-Spell On or Off?" } else { set %aspellq $1 } if (%aspellq == On) { .enable #autospell | echo $+ $clr(info2) $+ Auto-Spell is now: On | popchng on 3 | halt } elseif (%aspellq == Off) { .disable #autospell | echo $+ $clr(info2) $+ Auto-Spell is now: Off | popchng off 3 | halt } else { echo $+ $clr(info2) $+ Auto-Spell Error! Syntax: /aspell On or /aspell Off | halt } } ;Brings up help window. help { if ($1 != $null) { help $1- | halt } wincheck @help -p +nbt @Help $center(131,103,@Help) 131 103 @Help Comic Sans MS 14 drawpic @help 0 0 sysfiles/help/help2.bmp } ;Change personal connect modes usermodes { set %usrmodes $$?="Select Usermodes for Startup: (Eg. +iw)" if ($chr(43) != $left(%usrmodes,1)) { set %usrmodes $chr(43) $+ %usrmodes } echo -a $+ $clr(info) $+ *** StartUp Usermodes: %usrmodes } ;Progress bar in a window. Syntax: /progbar <total> <complete> <window> <left> <top> progbar { set %prog.size $$1 | set %prog.rcvd $$2 | set %prog.window $$3 | set %prog.left $$4 | set %prog.top $$5 set %prog.barnum $int($calc($calc(%prog.rcvd * 100) / %prog.size)) if (%prog.barnum > 100) { set %prog.barnum 100 } if (%prog.barnum < 1) { goto end } drawrect -f %prog.window 15 4 $calc(%prog.left + 42) %prog.top 20 10 drawrect -f %prog.window 2 4 %prog.left %prog.top %prog.barnum 10 if (%prog.barnum < 43) { drawtext -o %prog.window 1 arial 14 $calc(%prog.left + 43) %prog.top %prog.barnum $+ $chr(37) } else drawtext -o %prog.window 0 arial 14 $calc(%prog.left + 40) $calc(%prog.top - 1) %prog.barnum $+ $chr(37) :end unset %prog.* | return } ;========== ;The following is a group of aliases generally not useful to the average user, ;but neccessary to the script's functionality ;========== ;cleaning of various features wwwclean { set %tmp.1 $findfile($mircdirwww\,*,0) :loop if (%tmp.1 < 1) { goto end } .remove $findfile($mircdirwww\,*,%tmp.1) dec %tmp.1 goto loop :end } pageclean write -c sysfiles\page\page.ini | write -l1 sysfiles\page\page.ini [page] recclean write -c sysfiles\recent.ini ;Various echos wecho echo $clr(info) -a %cslogo $1- wecho2 echo $clr(info) -a å) $1- wrecho echo $clr(info) %wrecho å) $1- ;Error checking oecho echo $+ $clr(info) $+ *** You need ops on # to ban someone oecho2 echo $+ $clr(info) $+ *** You need ops on # to kick someone oecho3 echo $+ $clr(info) $+ *** You need ops on # to ban/kick someone oecho4 echo $+ $clr(info) $+ *** You need ops on # to perform this function | return halt ;Startup alias, not of much use accept in the script start { if ($readini -n sysfiles\update.ini update upgrade == $null) { .load -a sysfiles\aliases\startup.mrc | set %upgrade no | startcs } else { set %loadvar 1 | set %upgrade yes | restore } } ;Used by script on connect ;WARNING: Tampering with, or removing this alias *WILL* cause C-Script to not ;work properly! startup { addrec server if (%ctcpbox == On && $window(@IncomingáCTCPs:) == $null) { inctcpwin } if (%snoticebox == On) { if ($window(@IncomingáSNotices:) == $null) { insnotwin } | else { clear %cssnot } if (s isin %usrmodes) { mode $me %usrmodes } | else { mode $me %usrmodes $+ +s } } else { .mode $me %usrmodes } set %me $me set %awme * $+ $me $+ * set %dccemme = $+ $me .auser 10 $me .guser 10 $me 3 unset %deccln unset %chanflood* unset %msgflood* unset %notflood* unset %ctcpflood* unset %nickfld* unset %repeat* unset %cskickn* unset %link* unset %deopnick* unset %servops* unset %nsplit1 %nsplit2 unset %jnsynctchns unset %invflood* unset %temp* unset %tmp* set %signon $ctime set %sontime $day $adate $time set %colorfcodes 0 set %web.dns off set %mail.dns off set %lnkscnt 0 .timer338 off inc %verchkcntdwn 1 inc %setcntdwn 1 .identd off .timer735 0 30 idleaway .timer736 0 60 online if (%setcntdwn >= 5) { set %setcntdwn 0 | update } if (%verchkcntdwn >= 30) { set %verc.sil on | vercheck | update | wwwclean } if ($chat($me) == $null) { set %dccoffline Yes set %comsndr Off } if ($email == $null) { set %awayemail N/A } | else { set %awayemail $email } if (%top.play == on) { .play -ctTitles $me sysfiles\other.mrc 100 } unset %startupm startcchk startac } ;Used by script for titlebar stats titles { if ($1 == $null) { echo 4 -a Syntax: /titles [on|off] | halt } if ($1 == off) { set %c-tips off | set %title-bar.a off | set %top.play off } else { set %c-tips on | set %title-bar.a on | set %top.play on } } ;channel control mop { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to op someone | halt } | else { cntrl + o Op $$1- } } mdeop { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to deop someone | halt } | else { cntrl - o Deop $$1- } } voice { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to voice someone | halt } | else { cntrl + v Voice $$1- } } devoice { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to devoice someone | halt } | else { cntrl - v DeVoice $$1- } } mvoice { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to voice someone | halt } | else { cntrl + v Voice $$1- } } mdevoice { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to devoice someone | halt } | else { cntrl - v DeVoice $$1- } } k { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to kick someone | halt } | else { kick # $$1 $2- } } bk { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to kick/ban someone | halt } | else { cntrl2 + b ban 3 $$1 | kick # $$1 $2- } } op { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to op someone | halt } | else { cntrl + o Op $$1- } } deop { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to op someone | halt } | else { cntrl - o Deop $$1- } } cntrl2 { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to $$3 someone | halt } else { set %count 0 | set %count1 0 :next inc %count | inc %count1 if ($gettok($5-,%count,32) == $null) { dec %count1 if (%count1 == 1) { mode $active $1 $+ $str($2,1) $address($gettok($5-,$calc(%count - 1),32),$4) } if (%count1 == 2) { mode $active $1 $+ $str($2,2) $address($gettok($5-,$calc(%count - 2),32),$4) $address($gettok($5-,$calc(%count - 1),32),$4) } unset %count* | goto end } if (%count1 == 3) { mode $active $1 $+ $str($2,3) $address($gettok($5-,$calc(%count - 2),32),$4) $address($gettok($5-,$calc(%count - 1),32),$4) $address($gettok($5-,%count,32),$4) set %count1 0 } goto next :end } } cntrl { if ($me !isop #) { echo $+ $clr(info) $+ *** You need ops on # to $$3 someone | halt } else { set %count 0 | set %count1 0 :next inc %count | inc %count1 if ($gettok($4-,%count,32) == $null) { dec %count1 if (%count1 == 1) { mode $active $1 $+ $str($2,1) $gettok($4-,$calc(%count - 1),32) } if (%count1 == 2) { mode $active $1 $+ $str($2,2) $gettok($4-,$calc(%count - 2),32) $gettok($4-,$calc(%count - 1),32) } unset %count* | goto end } if (%count1 == 3) { mode $active $1 $+ $str($2,3) $gettok($4-,$calc(%count - 2),32) $gettok($4-,$calc(%count - 1),32) $gettok($4-,%count,32) set %count1 0 } goto next :end } } cmnd { set %tmp.cmnd $gettok($1-,1,39) set %tmp.nks $gettok($1-,2,39) if ($left(%tmp.nks,1) == $chr(32)) { set %tmp.nks $mid(%tmp.nks,2,$len(%tmp.nks)) } set %tmp.cmndc 1 set %tmp.cmndc2 $calc($count(%tmp.nks,$chr(32)) + 1) :loop if (%tmp.cmndc > %tmp.cmndc2) { goto done } %tmp.cmnd $gettok(%tmp.nks,%tmp.cmndc,32) inc %tmp.cmndc goto loop :done } cssend { set %tmp.nks $1- if ($left(%tmp.nks,1) == $chr(32)) { set %tmp.nks $mid(%tmp.nks,2,$len(%tmp.nks)) } set %tmp.cmndc $calc($count(%tmp.nks,$chr(32)) + 1) :loop if (%tmp.cmndc == 0) { goto done } dcc send $gettok(%tmp.nks,%tmp.cmndc,32) $mircdirC-Script.exe dec %tmp.cmndc goto loop :done } ;C-Tip alias for titlebar. The tips are also listed in the C-Script help by pressing f1. c-tip if (%c-tips == on) { titlebar - C-Tip $read sysfiles\help\tips.txt } | else { .timer338 off } ;Special windows for wallops, ctcps, etc. inctcpwin if ($1 == -c) { window -c %csctcp } | else { wincheck %csctcp %csctcp $xy(0,$calc(%y.max - 110 / 2),%csctcp) $wh(315,110,%csctcp) %csctcp comic sans ms 11 } insnotwin if ($1 == -c) { window -c %cssnot } | else { wincheck %cssnot %cssnot $xy.max(315,110,%cssnot) $wh(315,110,%cssnot) %cssnot comic sans ms 11 } wallopsbox if ($1 == -c) { window -c @WallOps } | else { wincheck @wallops -e @WallOps $xy($calc(%x.max - 375 / 2),0,@wallops) $wh(375,150,@WallOps) /wall @WallOps comic sans ms 11 } wallopsbox2 if ($1 == -c) { window -c @WallOps } | else { wincheck @wallops @WallOps $xy($calc(%x.max - 375 / 2),0,@wallops) $wh(375,150,@WallOps) @WallOps comic sans ms 11 } msglogw if ($1 == -c) { window -c %msglogw } | else { wincheck %msglogw %msglogw $center(415,110,%msglogw) $wh(415,110,%msglogw) %msglogw comic sans ms 11 } ;Uses to check whether a window is open or not (i.e. /wincheck @c -l @c 1 1 1 1) wincheck { if ($window($1).state == $null) { window $2- | return } window -r $1 | window -a $1 | clear $1 | clear -l $1 | return } online { %total = $ctime - %signon | set %total $stime(%total) | if ($away == $true) { %atotal = $ctime - %awaytime | set %atotal $stime(%atotal) } | set %pongtime $ticks | set %me $me | if (%title-bar.a == on) { .raw -q PRIVMSG $me :LAG $ticks $+ } } title { if (%title-bar.a != on) { halt } if ($away == $false) { titlebar %verwoc $satime $aday $sadate $chr(91) $+ Lag: %lag $chr(124) Idle: $stime($duration($idle)) $chr(124) Online: $stime($duration(%total)) $+ $chr(93) } elseif (($away == $true) && (%PGER == On) && (%msglog == On)) { titlebar %verwoc $satime $aday $sadate $chr(91) $+ Away: $stime($duration(%atotal)) $chr(124) PM: %msgnum $chr(124) MM: %mlmsgnum $chr(124) Lag: %lag $chr(124) Online: $stime($duration(%total)) $+ $chr(93) } elseif (($away == $true) && (%PGER == On) && (%msglog != On)) { titlebar %verwoc $satime $aday $sadate $chr(91) $+ Away: $stime($duration(%atotal)) $chr(124) PM: %msgnum $chr(124) Lag: %lag $chr(124) Online: $stime($duration(%total)) $+ $chr(93) } elseif (($away == $true) && (%msglog == On) && (%PGER != On)) { titlebar %verwoc $satime $aday $sadate $chr(91) $+ Away: $stime($duration(%atotal)) $chr(124) MM: %mlmsgnum $chr(124) Lag: %lag $chr(124) Online: $stime($duration(%total)) $+ $chr(93) } elseif (($away == $true) && (%PGER != On) && (%msglog != On)) { titlebar %verwoc $satime $aday $sadate $chr(91) $+ Away: $stime($duration(%atotal)) $chr(124) Lag: %lag $chr(124) Online: $stime($duration(%total)) $+ $chr(93) } else { titlebar %verwoc $satime $aday $sadate $chr(91) $+ Lag: %lag $chr(124) Idle: $duration($idle) $chr(124) Online: $duration(%total) $+ $chr(93) } } ;For statement for { set %loop 0 :next inc %loop if (%loop > $1) { unset %loop | return } $2- goto next } ccls window -c @c-script rsent disable #Send sent enable #Send en enable $$1 dis disable $$1 files .play -c $me $mircdirfiles.txt 50 echo { set %parms $$1- if ($left($1,1) == @ && $2 != $null) { if ($window($1).x == $null) { set %s -s | set %clr >á | set %parms $2- | goto end } else set %s $1 | set %parms $2- goto end } if ($left($2,1) == @) && ($2 isnum) { if ($window($2).x == $null) { set %s -s | set %clr $+ $1 $+ >á | set %parms $3- | goto end } if ($1 isnum) { set %s $2 | set %clr $+ $1 $+ | set %parms $3- | goto end } goto end } if ($left($active,1) == @) && ($left($1,1) != @) && ($left($2,1) != @) { if ($1 == -a) { set %s -s | set %parms $2- | goto end } if ($1 == -s) { set %s -s | set %parms $2- | goto end } if ($1 isnum) && ($2 == -a) { set %s -s | set %clr $+ $1 $+ | set %parms $3- | goto end } if ($1 isnum) && ($2 == -s) { set %s $2 | set %clr $+ $1 $+ | set %parms $3- | goto end } if ($1 isnum) { set %s -s | set %clr $+ $1 $+ | set %parms $2- | goto end } set %s -s } if ($1 isnum) && ($left($1,1) != @) && ($left($2,1) != @) && ($2 != $null) { if ($2 == -s) || ($2 == -a) { set %s $2 | set %clr $+ $1 $+ | set %parms $3- | goto end } set %clr $+ $1 $+ | set %parms $2- } if (($1 isnum && $2- == $null) || ($left($1,1) == @ && $2- == $null)) { echo -a $1 | goto end2 } :end if (%parms == $null) || (%parms == -a) || (%parms == -s) || (($left(%parms,1) == @) && ($gettok(%parms,2,32) == $null) && (%s == $null)) { echo -s $+ $clr(info) $+ * /echo: insufficient parameters | goto end2 } echo %s %clr $+ $stpr(%parms) :end2 unset %s %parms %clr } winlog writeini sysfiles\win.ini windows $fx($1) $+ x $window($1).x | writeini sysfiles\win.ini windows $fx($1) $+ y $window($1).y | writeini sysfiles\win.ini windows $fx($1) $+ w $window($1).w | writeini sysfiles\win.ini windows $fx($1) $+ h $window($1).h | return window { if (c isin $$1) && (- isin $1) { set %count 0 :next inc %count | if ($gettok($1-,%count,32) == $null) { goto end } if ($left($gettok($1-,%count,32),1) == @) && ($window($gettok($1-,%count,32)).state != $null) { winlog $gettok($1-,%count,32) | goto end } goto next } :end unset %count | window $1- } ;MOTD showmotd { filter -ff debug.log debug2.log *372 $+ * $+ $me $+ * $+ :-* .remove debug.log | window -h @ttt | loadbuf 150 @ttt debug2.log window @ $+ $server $center(620,370) 620 370 @motd courier new 11 | for $line(@ttt,0) aline @ $+ $server á | sline @ $+ $server 23 set %count 0 :next inc %count | if (%count > $line(@ttt,0)) { goto end } set %read $gettok($line(@ttt,%count),2-,58) rline @ $+ $server $next $replace(%read,$chr(32),$chr(160)) goto next :end window -c @ttt | .remove debug2.log | unset %count %read if (%startupm == 1) { echo -a $+ $clr(info) $+ *** Successfully connected to $server $+ ... | set %count 0 } | unset %startupm | .remove debug.log | next 1 } ;Clear active screen cls clear $active